package dnd.extension.base 
{
	import com.greensock.TimelineLite;
	import com.greensock.TimelineMax;
	import flash.display.*;
	import flash.text.*;
	import dnd.extension.helper.*;
	
	/**
	 * ...
	 * @author Hugh Hoang
	 */
	public class ViewBase extends MovieClip 
	{	
		//Timeline instance
		private var _timeLine:TimelineMax;
		
		public function get timeLine():TimelineMax
		{
			return _timeLine;
		}
		
		public function set timeLine(value:TimelineMax):void
		{
			_timeLine = value;
		}
		
		public function ViewBase() {
			_timeLine = new TimelineMax();
		}
		
		/**
		 * Get default app font
		 * @param	size
		 * @return
		 */
		protected function DefaultFontFormat(size:int):TextFormat {
			var fmt:TextFormat = new TextFormat(Constant.DEFAUL_FONT);
			fmt.color = 0xFFFFFF;
			fmt.size = size;
			return fmt;
		}
		
		/**
		 * Get control font
		 * @param	size
		 * @return
		 */
		protected function ControlFontFormat(size:int):TextFormat {
			var fmt:TextFormat = new TextFormat(Constant.CONTROL_FONT);
			fmt.color = 0xFFFFFF;
			fmt.size = size;
			return fmt;
		}
	}
}